package com.xiaochong.tir.common.data.mapper;


import com.xiaochong.tir.common.data.mapper.base.BaseDao;
import com.xiaochong.tir.common.data.po.CurrencyInfo;
import com.xiaochong.tir.common.data.po.ExchangeTransactionpairMiddle;
import com.xiaochong.tir.common.data.po.SelfSelected;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 此类为[基础代码]自动生成，继承了BaseDao类，已经拥有基本的增删改成操作
 * <其他请自行扩展>
 * @author cx
 * @time 2018-07-25 11:02
 */
public interface SelfSelectedMapper extends BaseDao<SelfSelected,Integer> {
    //自行扩展

    List<ExchangeTransactionpairMiddle> selectSelfPairSelectByUserId(@Param("user_id") Integer user_id);

    List<CurrencyInfo> selectCoinSelfSelectByUserId(@Param("user_id")Integer user_id);

    List<SelfSelected> getSelfSelectByMideleId(Map<String, Object> params);

    Integer insertReturnId(SelfSelected selfSelected);
    int deleteByPrimaryKeyNew(int key);

    //SelfSelected selectByIdOfSelect(SelfSelected selected);
}